/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package labirynthPackage;

/**
 * 
 * @author Perminov Alexander
 */
public class Robot {
    public Robot(Point robotPos){
        pos = robotPos;
    }
    /**
     * Keep X and Y coordinates of robot at Field
     */
    protected Point pos;
    /**
     * @return current position of Robot 
     */
    public Point getPos(){
        return pos;
    };
    protected boolean dead;
    public boolean isDead(){
        return dead;
    };
    /**
     * @param dir - Direction of movement
     * @return position of Robot after the movement
     */
    protected Point move(Direction dir){
        pos.move(dir);
        return pos;
    };
}
